<?php
$_SESSION['detail'] = $detail['id'];
$view = '<div id="xeco"><div style="text-align:center; width:100%; margin-bottom:15px;"><h2 style="font-size:26px; color:#3f0102"><img src="images/title1.gif" alt="" /> &nbsp; '.$menu['name'].' &nbsp; <img src="images/title2.gif" alt="" /></h2></div></div>
<div id="viewpost">
	<p class="date">'.date('H:i | d-m-Y', strtotime($detail['date_create'])).'</p>
	<h1>'.$detail['name'].'</h1>  <div id="zoom">';

$i=0;
$zoom = mysql_query("SELECT name,url_hinh FROM info_image WHERE `delete`=0 AND status=1 AND info_id=".$detail['id']);
while($row_zoom = mysql_fetch_array($zoom)){
	$i++;
	if($i==1) $view .= '<div class="targetarea"><img id="multizoom1" alt="'.$row_zoom['name'].'" title="" src="'.url_hinh_xeco.$row_zoom['url_hinh'].'"/></div><div id="description">'.$row_zoom['name'].'</div><div class="multizoom1 thumbs">';
	$view .= '<a href="'.url_hinh_xeco.$row_zoom['url_hinh'].'" data-large="'.url_hinh_xeco.'big_'.$row_zoom['url_hinh'].'" data-title="'.$row_zoom['name'].'"><img src="'.url_hinh_xeco_thumbs.$row_zoom['url_hinh'].'" alt="'.$row_zoom['name'].'" title=""/></a>';
}
(mysql_num_rows($zoom)>0) ? $view .= '</div>' : $view .= '';
$view .= '</div><!--end zoom-->
<div id="content_2">'.$detail['content'].'</div>
<div style="width:250px; float:right; background:#CBC1A0; overflow:hidden">
<div id="guiykien"><img src="images/nhanxetxe.jpg" alt="nhận xét xe cổ" /></div>   <div id="popupContact"><div id="formykien"><h4 style="color:#FFF000; font-size:16px; margin-bottom:5px">Nhận xét..</h4><p><input type="text" name="name" value="Họ tên" maxlength="50" class="txt" /></p><p><input type="text" name="email" value="Email" maxlength="50" class="txt" /></p><p><textarea class="textarea" name="content"></textarea></p><p><input type="button" name="btnSub" value="Gửi" class="btn" /><input type="button" name="btnCancel" value="Hủy" class="btn" /></p><input type="hidden" name="id" value="'.$_POST['id'].'" /><input type="hidden" name="form" value="info_comment" /></div></div><div id="backgroundPopup"></div>
<div id="content_1">';
$qr = mysql_query("SELECT id,content,name,date_create FROM info_comment WHERE `delete`=0 AND status=1 AND info_id={$detail['id']} ORDER BY date_update DESC");
if(mysql_num_rows($qr) > 0){
	while($row = mysql_fetch_array($qr)){
		$view .= "<div class=\"item_ykien\"><h5>{$row['name']}</h5> <span style='font-weight:100; font-size:12px; color:#666'>".date('H:i d/m/Y',strtotime($row['date_create']))."</span>
		<p id='{$row['id']}'>{$row['content']}</p><span class='xemthem {$row['id']}'><a href='javascript:;'>xem thêm..</a></span></div>";
	}
	mysql_free_result($qr);
}
$view .= '</div><!--end content_1--></div></div><!--end viewpost-->';

$view .= '<div style="clear:both; height:50px"></div><div style="text-align:center; width:100%; margin-bottom:10px"><img src="images/title1.gif" alt="" /> <span style="color:#3f0102; font-size:26px"> &nbsp; <strong>XE CỔ</strong> &nbsp; </span> <img src="images/title2.gif" alt="" /></div>  <div id="listinfo" class="ptxeco">11111';


echo $view.'</div>';
?>
